//
//  DCRecommendReusableView.m
//  商城
//
//  Created by runone02 on 2018/8/28.
//  Copyright © 2018年 liqiyun. All rights reserved.
//

#import "DCRecommendReusableView.h"

@interface DCRecommendReusableView ()

/* 头部推荐标题 */
@property (strong , nonatomic)UILabel *recommendLabel;

@end

@implementation DCRecommendReusableView

#pragma mark - Intial
- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    if (self) {
        
        [self setUpUI];
    }
    return self;
}

- (void)setUpUI{
    _recommendLabel = [[UILabel alloc] init];
    _recommendLabel.text = @"大家都在买";
    _recommendLabel.textColor = [UIColor darkGrayColor];
    _recommendLabel.font = TITLE_FONT(24);
    
    [self addSubview:_recommendLabel];
}

- (void)layoutSubviews{
    [super layoutSubviews];
    
    [_recommendLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self);
        [make.left.mas_equalTo(self)setOffset:DCMargin];
    }];    
}


@end
